package th.go.drr.gps.web.model;

import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import th.go.drr.gps.domain.Amphur;

@XmlRootElement(name ="amphurs")
public class AmphurList {
	
	private int count;

	private List<Amphur>amphurs;

	@XmlElement(name="amphur")
	public List<Amphur> getAmphurs() {
		return amphurs;
	}

	public void setAmphurs(List<Amphur> amphurs) {
		this.amphurs = amphurs;
		this.setCount(amphurs.size());
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}
}
